<div class="margin-content">

  <div class="no-results" i18n *ngIf="notResults">No results.</div>

  <div
    myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()"
  >
    <ng-container *ngFor="let overview of overviews">

      <div class="section" *ngFor="let object of overview.categories">
        <div class="section-title">
          <a routerLink="/search" [queryParams]="{ categoryOneOf: [ object.category.id ] }">{{ object.category.label }}</a>
        </div>

        <my-video-miniature *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
        </my-video-miniature>
      </div>

      <div class="section" *ngFor="let object of overview.tags">
        <div class="section-title">
          <a routerLink="/search" [queryParams]="{ tagsOneOf: [ object.tag ] }">#{{ object.tag }}</a>
        </div>

        <my-video-miniature *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
        </my-video-miniature>
      </div>

      <div class="section channel" *ngFor="let object of overview.channels">
        <div class="section-title">
          <a [routerLink]="[ '/video-channels', buildVideoChannelBy(object) ]">
            <img [src]="buildVideoChannelAvatarUrl(object)" alt="Avatar" />

            <div>{{ object.channel.displayName }}</div>
          </a>
        </div>

        <my-video-miniature *ngFor="let video of buildVideos(object.videos)" [video]="video" [user]="user" [displayVideoActions]="false">
        </my-video-miniature>
      </div>

    </ng-container>

  </div>

</div>
